package io.renren.modules.generator.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.generator.entity.FileEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author jianzhen
 * @email sunlightcs@gmail.com
 * @date 2022-03-14 22:03:11
 */
public interface FileService extends IService<FileEntity> {

    PageUtils queryPage(Map<String, Object> params);

    IPage<Map<String, Object>> selectFileList(@Param("page") Page<Map<String, Object>> page, @Param("params") Map<String, Object> params);

    IPage<Map<String, Object>> selectDeleteFileList(@Param("page") Page<Map<String, Object>> page, @Param("params") Map<String, Object> params);

    void reclaim(Integer fileId);

    void updateFie(FileEntity fileEntity);

    IPage<Map<String, Object>> selectRestoreFileList(@Param("page") Page<Map<String, Object>> page, @Param("params") Map<String, Object> params);

    List<FileEntity> fileListDir(Integer dirId);


}

